package org.aceor.mddal.common.zk;

/**
 * 动态配置客户端单例工厂
 * Created by lxue on 16/3/19.
 */
public class DynConfigClientFactory {
    private DynConfigClientFactory(){}

    public static DynConfigClient getConfigClient(){
        DynConfigClientHolder.dynConfigClient.init();
        return DynConfigClientHolder.dynConfigClient;
    }
    private static final class DynConfigClientHolder {
        private static DynConfigClient dynConfigClient = new DynConfigClient();
    }
}
